package com.liudehua.service;

import com.liudehua.boot.context.Context;
import com.liudehua.boot.entry.UserBean;
import com.liudehua.boot.interfaces.CaculateHours;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
@Service
public class UserService {

    @Reference(check=false)
    public CaculateHours  caculateHours;
    //调用
    public String user(){
        UserBean user = new  UserBean();
        user.setName("liudehua");
        String name =  caculateHours.cata(user);
        Context.remove();
        return name;
    }
}
